/*
 * texture.h
 *
 *  Created on: 10-nov-2012
 *      Author: dna
 */

#ifndef TEXTURE_H_
#define TEXTURE_H_

#ifndef _LINUX_GL_LIBRARIES
#define _LINUX_GL_LIBRARIES

#include <GL/glut.h>    				// Header File For The GLUT Library
#include <GL/gl.h>						// Header File For The OpenGL32 Library
#include <GL/glu.h>						// Header File For The GLu32 Library

#endif

#include <cstdlib>
#include <cstdio>
#include <iostream>

using namespace std;


/* Image type - contains height, width, and data */
typedef struct {
	unsigned long sizeX;
	unsigned long sizeY;
	char *data;
} Image;

// quick and dirty bitmap loader...for 24 bit bitmaps with 1 plane only.
// See http://www.dcs.ed.ac.uk/~mxr/gfx/2d/BMP.txt for more info.
bool ImageLoad(char *filename, Image *image);

// Load Bitmaps And Convert To Textures
//bool LoadGLTextures(char *filename, GLuint texture);

#endif /* TEXTURE_H_ */
